package com.molichuxing.gateway.bff.orders.services;

import com.molichuxing.framework.exception.BizException;
import com.molichuxing.framework.service.RootService;
import com.molichuxing.gateway.bff.orders.entity.request.create.OrderCreateVo;
import com.molichuxing.gateway.bff.orders.entity.request.modify.TradeCancelModifyVo;
import com.molichuxing.gateway.bff.orders.entity.request.modify.TradeDeliveryModifyVo;
import com.molichuxing.gateway.bff.orders.entity.response.DeliveryResultVo;
import com.molichuxing.gateway.bff.orders.entity.response.OrderVo;

/**
 * 订单交易bff
 * 
 * @author zoumingyu
 * @date 2019年9月19日
 *
 */
public interface OrderTradeBffService extends RootService {

	/**
	 * 订单新增
	 * 
	 * @param createVo
	 * @return orderCode：订单号
	 */
	public OrderVo createOrder(OrderCreateVo createVo) throws BizException, Exception;

	/**
	 * 订单取消
	 * 
	 * @param modifyVo
	 * @return
	 */
	public Boolean modifyCancel(TradeCancelModifyVo modifyVo) throws BizException, Exception;

	/**
	 * 订单提车
	 * 
	 * @param modifyVo
	 * @return
	 * @throws Exception
	 */
	public DeliveryResultVo modifyDelivery(TradeDeliveryModifyVo modifyVo) throws BizException, Exception;
}
